import { apiConstants,loadModalInfo,getUrlParam} from '@/js/utils'
import departmentList from '@/components/password/departmentList'
new Vue({
  el: "#app",
  components: {departmentList},
  data() {
    return {
      resData: {
        companyInfo:getUrlParam(),
        workShopList:[]
      }
    }
  },
  created(){
    this.getWorkShopList();
  },
  mounted() {
  },
  computed(){
  },
  watch: {

  },
  methods: {
    getWorkShopList(){
      let _this = this;
      _this.$ajax(apiConstants.company_getWorkShopTeamList, {
        data: {companyId: _this.resData.companyInfo.id},
        success: function (data) {
          console.log("data", data)
          _this.resData.workShopList = data || [];
        }
      })
    },
  }
});
